]> dgit.raspbian.org Git - gnome-shell.git/commit
boxpointer: Swap arrow alignment on RTL
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 29 Jan 2024 16:41:54 +0000 (17:41 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 29 Jan 2024 22:40:12 +0000 (22:40 +0000)
commit4e70315fbb7a4ee88bd5ce1d789d6735da450975
treeee006d04d9fcb267b613c0f3645019013f6fd52b
parente889bff1c6cc15d740f1ecd882bb9cac49d9ce18
boxpointer: Swap arrow alignment on RTL

The current code uses the arrow alignment to align the menu between
the top/left (0) and bottom/right(1), regardless of the text direction.

Instead of adjusting code everywhere, reinterpret the parameter
to refer to start/end instead, and swap the alignment with an
RTL text direction.

Credit to Sebastian Keller for spotting the cause of the issue.

Close https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5261
Close https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7356

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3150>
js/ui/boxpointer.js